/* Chat Messages */
.chat-message {
  --background: var(--ion-color-chat-bot);
  --border-radius: 12px;
  margin: 8px 0;
}

.chat-message.user-message {
  --background: var(--ion-color-chat-user);
}

/* Translation */
.translation-container {
  padding: 16px;
}

.translation-item {
  background: var(--ion-color-translation-source);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.translation-source {
  --background: var(--ion-color-translation-source);
  --padding-start: 16px;
  --padding-end: 16px;
  --min-height: auto;
}

.translation-target {
  --background: var(--ion-color-translation-target);
  --padding-start: 16px;
  --padding-end: 16px;
  --min-height: auto;
}

/* Font Sizes */
.text-sm {
  font-size: var(--ion-font-size-sm);
}

.text-md {
  font-size: var(--ion-font-size-md);
}

.text-lg {
  font-size: var(--ion-font-size-lg);
}

/* Loading Skeletons */
.skeleton-text {
  --border-radius: 4px;
  --background: rgba(var(--ion-text-color-rgb), 0.1);
}

.skeleton-avatar {
  --border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Custom Components */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ion-color-primary-tint);
  color: var(--ion-color-primary-contrast);
  font-size: 20px;
  font-weight: 500;
}

.flex-input-container {
  display: flex;
  align-items: center;
  background: var(--ion-background-color);
  border-radius: 24px;
  margin: 8px 16px;
  padding: 4px;
  border: 1px solid var(--ion-border-color);
}

.flex-input-container ion-input {
  --padding-start: 8px;
  --padding-end: 8px;
  margin: 0 8px;
}